﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

    Height="300" Width="300" Padding="5">

	<UserControl.Resources>		
		<Style TargetType="{x:Type Button}">
			<Setter Property="Margin" Value="3" />
		</Style>
	</UserControl.Resources>

	<Grid>
		<Grid.RowDefinitions>
			<RowDefinition />
			<RowDefinition />
			<RowDefinition />
			<RowDefinition />
			<RowDefinition />
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition />
			<ColumnDefinition />
			<ColumnDefinition />
			<ColumnDefinition />
		</Grid.ColumnDefinitions>
		
		<Button Grid.Column="0" Grid.Row="0" 
				Command="{Binding Path=PressAndRelease}" CommandParameter="NUMLOCK">Num Lock</Button>
		<Button Grid.Column="1" Grid.Row="0" 
				Command="{Binding Path=PressAndRelease}" CommandParameter="DIVIDE">/</Button>
		<Button Name="button3" Grid.Column="2"
				Command="{Binding Path=PressAndRelease}" CommandParameter="MULTIPLY">*</Button>
		<Button Name="button4" Grid.Column="3"
				Command="{Binding Path=PressAndRelease}" CommandParameter="SUBTRACT">-</Button>
		<Button Name="button5" Grid.Row="1" Background="WhiteSmoke"
				Command="{Binding Path=PressAndRelease}" CommandParameter="NUMPAD7">7</Button>
		<Button Name="button6" Grid.Column="1" Grid.Row="1" Background="WhiteSmoke"
				Command="{Binding Path=PressAndRelease}" CommandParameter="NUMPAD8">8</Button>
		<Button Name="button7" Grid.Column="2" Grid.Row="1" Background="WhiteSmoke"
				Command="{Binding Path=PressAndRelease}" CommandParameter="NUMPAD9">9</Button>
		<Button Name="button8" Grid.Column="3" Grid.Row="1" Grid.RowSpan="2"
				Command="{Binding Path=PressAndRelease}" CommandParameter="ADD">+</Button>
		<Button Name="button9" Grid.Row="2" Background="WhiteSmoke"
				Command="{Binding Path=PressAndRelease}" CommandParameter="NUMPAD4">4</Button>
		<Button Name="button10" Grid.Column="1" Grid.Row="2" Background="WhiteSmoke"
				Command="{Binding Path=PressAndRelease}" CommandParameter="NUMPAD5">5</Button>
		<Button Name="button11" Grid.Column="2" Grid.Row="2" Background="WhiteSmoke"
				Command="{Binding Path=PressAndRelease}" CommandParameter="NUMPAD6">6</Button>
		<Button Name="button13" Grid.Row="3" Background="WhiteSmoke"
				Command="{Binding Path=PressAndRelease}" CommandParameter="NUMPAD1">1</Button>
		<Button Name="button14" Grid.Column="1" Grid.Row="3" Background="WhiteSmoke"
				Command="{Binding Path=PressAndRelease}" CommandParameter="NUMPAD2">2</Button>
		<Button Name="button15" Grid.Column="2" Grid.Row="3" Background="WhiteSmoke"
				Command="{Binding Path=PressAndRelease}" CommandParameter="NUMPAD3">3</Button>
		<Button Style="{DynamicResource ShiftKey}" Name="button16" Grid.Column="3" Grid.Row="3" Grid.RowSpan="2"
				Command="{Binding Path=PressAndRelease}" CommandParameter="RETURN">Enter</Button>
		<Button Name="button17" Grid.Row="4" Grid.ColumnSpan="2" Background="WhiteSmoke"
				Command="{Binding Path=PressAndRelease}" CommandParameter="NUMPAD0">0</Button>
		<Button Name="button19" Grid.Column="2" Grid.Row="4" Background="WhiteSmoke"
				Command="{Binding Path=PressAndRelease}" CommandParameter="DECIMAL"	>.</Button>
	</Grid>
</UserControl>
